
public class TestCourseSelection {

	public static void main(String[] args) {
		        // 1. 创建教师对象
		        Teacher t1 = new Teacher("T001", "张三", "男");
		        Teacher t2 = new Teacher("T002", "李四", "女");

		        // 2. 创建课程对象
		        Course c1 = new Course("C001", "Java程序设计", "A101", "周一上午8：00到9：40", "T001");
		        Course c2 = new Course("C002", "数据库原理", "B202", "周三下午13：30到15：10", "T002");

		        // 3. 教师开课
		        t1.openCourse(c1);
		        t2.openCourse(c2);

		        // 4. 创建学生对象
		        Student s1 = new Student("S001", "王五", "男");
		        Student s2 = new Student("S002", "赵六", "女");

		        // 5. 学生选课
		        s1.selectCourse(c1);
		        s1.selectCourse(c2);
		        s2.selectCourse(c1);

		        // 6. 学生退课
		        s1.dropCourse(c2);

		        // 7. 打印学生课表
		        s1.printCourseSchedule();
		        s2.printCourseSchedule();
		    }
		// TODO Auto-generated method stub

	}


